package com.example.demo.controller;

import com.example.demo.dao.entity.Student;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @RequestMapping(value = "/test",produces = "application/json;charset=UTF-8")
    public Object test(){
        Student student = new Student();
        student.setName("张三");
        student.setAge(18);
        student.setGender("男");
        return student;
    }

}
